package com.lanqiao.cloud.user.feign;

import com.lanqiao.springcloud.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author 王文凯
 * 未来的生活很潇洒
 * 未来的世界很自由
 */
@FeignClient(value = "MICROSERVICE-PRODUCTS",fallback = ProductServiceFeignImpl.class)
public interface ProductServiceFeign {

    @GetMapping("/api/products/")
    public List<Product> getProducts();
}
